package cc.comac.mom.api;

import java.util.List;

import cc.comac.mom.bean.EquipMaintainPlanBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipMaintainPlan;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@FeignClient("mom-equipment-mgmt-srv")
public interface EquipMaintainPlanEntityService {

	@ApiOperation("新增保养计划")
	@RequestMapping(value = "/p/cs/EquipMaintainPlanEntityService/insertMaintainPlan",method = RequestMethod.POST)
	public ResultBean insertMaintainPlan (@RequestBody List<EquipMaintainPlan> equipMaintainPlan);
	@ApiOperation("通过保养计划主键批量删除保养计划")
	@RequestMapping(value = "/p/cs/EquipMaintainPlanEntityService/batchDeleteByMaintainPlanId",method = RequestMethod.POST)
	public ResultBean batchDeleteByMaintainPlanId (@RequestBody List<EquipMaintainPlan> list);
	@ApiOperation("通过保养计划主键更新保养计划")
	@RequestMapping(value = "/p/cs/EquipMaintainPlanEntityService/updateByMaintainPlanId",method = RequestMethod.POST)
	public ResultBean updateByMaintainPlanId (@RequestBody EquipMaintainPlan equipMaintainPlan);
	@ApiOperation("通过条件查询保养计划")
	@RequestMapping(value = "/p/cs/EquipMaintainPlanEntityService/selectBySomeFields",method = RequestMethod.POST)
	public ResultBean selectBySomeFields(@RequestBody EquipMaintainPlanBean equipMaintainPlan);
	@ApiOperation("启用保养计划")
	@RequestMapping(value = "/p/cs/EquipMaintainPlanEntityService/changeEnable",method = RequestMethod.POST)
	public ResultBean changeEnable(@RequestBody EquipMaintainPlan equipMaintainPlan);
	@ApiOperation("发布保养计划")
	@RequestMapping(value = "/p/cs/EquipMaintainPlanEntityService/planSent",method = RequestMethod.POST)
	public ResultBean planSent (@RequestBody List<EquipMaintainPlan> list);
	@RequestMapping(value = "/p/cs/EquipMaintainPlanEntityService/selectBenchmarkByLocation",method = RequestMethod.POST)
	public ResultBean selectBenchmarkByLocation(@RequestBody EquipMaintainPlan equipMaintainPlan);

}
